import request from '@/utils/request'

// 查询入团积极分子列表
export function listActive(query) {
  return request({
    url: '/active/active/list',
    method: 'get',
    params: query
  })
}

// 查询入团积极分子详细
export function getActive(maId) {
  return request({
    url: '/active/active/' + maId,
    method: 'get'
  })
}

// 新增入团积极分子
export function addActive(data) {
  return request({
    url: '/active/active',
    method: 'post',
    data: data
  })
}

// 修改入团积极分子
export function updateActive(data) {
  return request({
    url: '/active/active',
    method: 'put',
    data: data
  })
}

// 删除入团积极分子
export function delActive(maId) {
  return request({
    url: '/active/active/' + maId,
    method: 'delete'
  })
}
